<!DOCTYPE html>
<html lang="en-US">
    <head>
        <title>libnetFAQ - libnet Frequently Asked Questions - metacpan.org</title>
        <link rel="preload" as="fetch" href="https://metacpan.org/account/login_status" crossorigin="anonymous" />
        <link href="https://metacpan.org/_assets/b8ccceeed47a0652049703d99326a9cea4933443.css" rel="stylesheet" type="text/css">
        <script src="https://metacpan.org/_assets/6bfedafe2d7caa915b7d84f61b45936818e3242e.js" type="text/javascript" defer></script>
        <link rel="alternate" type="application/rss+xml" title="Recent CPAN Uploads of libnet - MetaCPAN" href="https://metacpan.org/dist/libnet/releases.rss" />
        <link rel="canonical" href="https://metacpan.org/dist/libnet/view/lib/Net/libnetFAQ.pod" />
        <meta name="description" content="libnet Frequently Asked Questions" />
        <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=5">
        <link rel="shortcut icon" href="https://metacpan.org/static/icons/favicon.ico">
        <link rel="apple-touch-icon" sizes="152x152" href="https://metacpan.org/static/icons/apple-touch-icon.png">
        <link rel="search" href="https://metacpan.org/static/opensearch.xml" type="application/opensearchdescription+xml" title="MetaCPAN">
        <script>
          (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
          (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
          m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
          })(window,document,'script','//www.google-analytics.com/analytics.js','ga');

          (function(skey, ga_id){
            ga('create', ga_id, {
              siteSpeedSampleRate : 100,
              storage             : 'none',
              clientId            : localStorage.getItem(skey)
            });
            ga(function(tracker) {
              localStorage.setItem(skey, tracker.get('clientId'));
            });
            ga('send', 'pageview');
          })('ga:clientId', 'UA-27829474-1');
        </script>
<meta name="twitter:card"        content="summary" />
<meta name="twitter:url"         content="https://metacpan.org/pod/libnetFAQ" />
<meta name="twitter:title"       content="libnetFAQ" />
<meta name="twitter:description" content="libnet Frequently Asked Questions" />
<meta name="twitter:site"        content="metacpan" />
    </head>
    <body>
        <nav class="navbar navbar-default" role="navigation">
            <div class="header-logo-large hidden-xs">
              <a href="https://metacpan.org/" tabindex="0">
                <svg class="logo" aria-label="MetaCPAN">
                  <use class="logo" href="/static/images/metacpan-logo.svg#logo" />
                </svg>
              </a>
            </div>
            <div class="header-logo-icon visible-xs">
              <a href="https://metacpan.org/">
                <svg class="logo" aria-label="MetaCPAN">
                  <use class="logo" href="/static/images/metacpan-logo.svg#dots" />
                </svg>
              </a>
            </div>
            <ul class="nav navbar-nav menu-items hidden-xs hidden-sm">
              <li><a href="https://metacpan.org/about">About</a></li>
              <li><a href="https://metacpan.org/about/sponsors">Sponsor</a></li>
              <li><a href="https://grep.metacpan.org/">grep::cpan</a></li>
              <li><a href="https://metacpan.org/recent">Recent</a></li>
              <li><a href="https://metacpan.org/about/faq">FAQ</a></li>
              <li><a href="https://metacpan.org/tools">Tools</a></li>
              <li><a href="https://fastapi.metacpan.org/">API</a></li>
            </ul>
            <ul class="nav navbar-nav navbar-right">
                <button type="button" class="searchbar-btn visible-xs visible-sm">
                    <i class="fa fa-search button-fa-icon"></i>
                </button>
                <form action="https://metacpan.org/search" class="searchbar-form visible-md visible-lg search-form form-horizontal">
                   <input type="hidden" name="size" id="metacpan_search-size" value="20">
                  <div class="form-group">
                      <div class="search-group">
                        <i class="fa fa-search"></i>
                        <input type="text" name="q" placeholder="Search the CPAN" size="41" autocorrect="off" autocapitalize="off" spellcheck="false" id="metacpan_search-input" class="form-control" value="">
                      </div>
                  </div>
                </form>
                    <li class="icon-slidepanel visible-xs visible-sm">
                      <button data-toggle="slidepanel" data-target=".slidepanel">
                        <span class="button-fa-icon">
                          <i class="fa fa-bars slidepanel-open"></i>
                          <i class="fa fa-times slidepanel-close"></i>
                        </span>
                      </button>
                    </li>
                <form action="https://metacpan.org/account/logout" method="POST" id="metacpan-logout"></form>
                <li class="dropdown logged_in" style="display: none;">
                    <button type="button" class="dropdown-toggle" data-toggle="dropdown">
                      <i class="fa fa-user button-fa-icon logged-in-icon" aria-hidden="true"></i>
                      <i class="fas fa-chevron-down"></i>
                    </button>
                    <ul class="dropdown-menu">
                        <li><a href="https://metacpan.org/account/identities">Identities</a></li>
                        <li><a href="https://metacpan.org/account/profile">Profile</a></li>
                        <li><a href="https://metacpan.org/account/favorite/list">Favorites</a></li>
                        <li>
                            <a href="libnetFAQ.html#" type="button" onclick="$('#metacpan-logout').submit(); return false">
                              Logout
                            </a>
                        </li>
                    </ul>
                </li>
                <li class="dropdown logged_out" style="display: none;">
                    <button type="button" class="dropdown-toggle" data-toggle="dropdown">
                      <i class="fa fa-user button-fa-icon" aria-hidden="true"></i>
                      <i class="fas fa-chevron-down"></i>
                    </button>
                    <ul class="dropdown-menu">
                        <li>
                            <a href="https://metacpan.org/login/github">
                                <i class="fab fa-github fa-fw"></i>
                                GitHub
                            </a>
                        </li>
                        <li>
                            <a href="https://metacpan.org/login/twitter">
                                <i class="fab fa-twitter fa-fw"></i>
                                Twitter
                            </a>
                        </li>
                        <li>
                            <a href="https://metacpan.org/login/google">
                                <i class="fab fa-google fa-fw"></i>
                                Google
                            </a>
                        </li>
                    </ul>
                </li>
                <li class="dropdown logged_placeholder">
                    <button>
                      <i class="fa fa-user button-fa-icon" aria-hidden="true"></i>
                    </button>
                </li>
            </ul>
        </nav>
        <div class="page-content ">
          <!--
          <div class="top-notify-banner">
            <i class="fas fa-info-circle"></i>
          </div>
          -->
          <nav class="sidebar">
            <div class="slidepanel">
              <ul class="nav-list ">
    <li class="nav-header no-margin-top">
      <div class="ttip" data-toggle="tooltip" data-placement="bottom" title="The date that this version of libnet was released.">
      <span class="relatize">20 Mar 2023 19:15:53 UTC</span>
    </li>
  <li>
    Distribution: <a href="https://metacpan.org/dist/libnet">libnet</a>
  </li>
  <li>
    <a data-keyboard-shortcut="g s" href="https://metacpan.org/dist/libnet/source/lib/Net/libnetFAQ.pod">Source</a>
    (<a href="https://metacpan.org/dist/libnet/source/lib/Net/libnetFAQ.pod?raw=1">raw</a>)
  </li>
  <li>
    <a data-keyboard-shortcut="g b" href="https://metacpan.org/dist/libnet/source/lib/Net">Browse</a>
    (<a href="https://metacpan.org/dist/libnet/source/lib/Net?raw=1">raw</a>)
  </li>
    <li>
      <a data-keyboard-shortcut="g c" href="https://metacpan.org/dist/libnet/changes">Changes</a>
    </li>
    <li>
      <a class="nopopup" href="https://metacpan.org/dist/libnet/contribute">How to Contribute</a>
    </li>
    <li>
        <a rel="noopener nofollow" data-keyboard-shortcut="g r" href="https://github.com/steve-m-hay/perl-libnet">Repository</a>
    </li>
    <li>
      <a rel="noopener nofollow" data-keyboard-shortcut="g i" href="https://rt.cpan.org/Public/Dist/Display.html?Name=libnet">Issues</a>
      (72)
    </li>
    <li>
      <a rel="noopener nofollow" href="http://matrix.cpantesters.org/?dist=libnet+3.15" title="Matrix">Testers</a>
        <span title="(pass / fail / na)">(<a rel="noopener nofollow" href="https://www.cpantesters.org/distro/l/libnet.html?oncpan=1&amp;distmat=1&amp;version=3.15&amp;grade=2" style="color: #090">1502</a> / <a rel="noopener nofollow" href="https://www.cpantesters.org/distro/l/libnet.html?oncpan=1&amp;distmat=1&amp;version=3.15&amp;grade=3" style="color: #900">1</a> / <a rel="noopener nofollow" href="https://www.cpantesters.org/distro/l/libnet.html?oncpan=1&amp;distmat=1&amp;version=3.15&amp;grade=4">0</a>)</span>
    </li>
    <li>
      <a rel="noopener nofollow" href="http://cpants.cpanauthors.org/release/SHAY/libnet-3.15">Kwalitee</a>
    </li>
    <li>
      <div class="ttip" data-toggle="tooltip" data-placement="bottom" title="The # people with an indexing permission on libnet who have released something to CPAN in the last 2 years (i.e. the # people likely able to release critical fixes in a timely manner)">
      Bus factor: 5
      </div>
    </li>
    <li>
      <a rel="noopener nofollow" href="http://cpancover.com/latest/libnet-3.15/index.html">27.76% Coverage </a>
    </li>
    <li>
      License: perl_5
    </li>
    <li>
      Perl: v5.8.1
    </li>
    <li class="nav-header">Activity</li>
    <li>
<div class="activity-graph">
    <img src="https://metacpan.org/dist/libnet/activity.svg?res=month" />
    <div class="comment">24 month</div>
</div>
    </li>
    <li class="nav-header">Tools</li>
    <li>
      <a itemprop="downloadUrl" href="https://cpan.metacpan.org/authors/id/S/SH/SHAY/libnet-3.15.tar.gz">
      Download (<span itemprop="fileSize">93.35KB</span>)</a>
    </li>
    <li>
      <a href="https://explorer.metacpan.org/?url=%2Fmodule%2FSHAY%2Flibnet-3.15%2Flib%2FNet%2FlibnetFAQ.pod">
        MetaCPAN Explorer
      </a>
    </li>
    <li>
      <a href="https://metacpan.org/dist/libnet/permissions">
        Permissions
      </a>
    </li>
    <li>
      <a href="https://metacpan.org/dist/libnet/releases.rss">
        Subscribe to distribution
      </a>
    </li>
    <li>
      <button class="btn btn-link" data-toggle="modal" data-target="#metacpan_install-instructions-dialog">
        Install Instructions
      </button>
    </li>
    <li>
      <form action="https://metacpan.org/search">
        <input type="hidden" name="q" value="dist:libnet">
        <input type="search" name="q" placeholder="Search distribution" class="form-control tool-bar-form">
        <input type="submit" style="display: none">
      </form>
    </li>
    <li>
      <form action="https://grep.metacpan.org/search">
        <input type="hidden" name="qd" value="libnet">
        <input type="hidden" name="source" value="metacpan">
        <input type="search" name="q" placeholder="grep distribution" class="form-control tool-bar-form">
        <input type="submit" style="display: none">
     </form>
    </li>
    <li class="version-jump">
<select onchange="document.location.href=&#39;/release/&#39;+this.value+&#39;/view/lib/Net/libnetFAQ.pod&#39;" class="form-control tool-bar-form">
  <option disabled selected>Jump to version</option>
<option
  disabled
  value="SHAY/libnet-3.15"
>3.15
  (SHAY on 2023-03-20)</option>
<option
  
  value="SHAY/libnet-3.14"
>3.14
  (SHAY on 2022-05-22)</option>
<option
  
  value="SHAY/libnet-3.13"
>3.13
  (SHAY on 2020-12-23)</option>
<option
  
  value="GBARR/libnet-1.22_01"
>1.22_01 DEV
  (GBARR on 2010-05-31)</option>
<option
  
  value="GBARR/libnet-1.22"
>1.22
  (GBARR on 2007-08-26)</option>
<optgroup label="BackPAN">'
<option
  
  value="SHAY/libnet-3.12"
>3.12
  (SHAY on 2020-12-09)</option>
<option
  
  value="SHAY/libnet-3.11"
>3.11
  (SHAY on 2017-11-14)</option>
<option
  
  value="SHAY/libnet-3.10"
>3.10
  (SHAY on 2016-08-01)</option>
<option
  
  value="SHAY/libnet-3.09"
>3.09
  (SHAY on 2016-07-19)</option>
<option
  
  value="SHAY/libnet-3.08"
>3.08
  (SHAY on 2016-01-05)</option>
<option
  
  value="SHAY/libnet-3.07"
>3.07
  (SHAY on 2015-07-17)</option>
<option
  
  value="SHAY/libnet-3.06"
>3.06
  (SHAY on 2015-04-01)</option>
<option
  
  value="SHAY/libnet-3.05"
>3.05
  (SHAY on 2015-01-13)</option>
<option
  
  value="SHAY/libnet-3.04"
>3.04
  (SHAY on 2014-11-29)</option>
<option
  
  value="SHAY/libnet-3.03"
>3.03
  (SHAY on 2014-11-28)</option>
<option
  
  value="SHAY/libnet-3.02"
>3.02
  (SHAY on 2014-10-10)</option>
<option
  
  value="SHAY/libnet-3.01"
>3.01
  (SHAY on 2014-10-09)</option>
<option
  
  value="SHAY/libnet-3.00"
>3.00
  (SHAY on 2014-10-09)</option>
<option
  
  value="SHAY/libnet-1.30"
>1.30
  (SHAY on 2014-10-08)</option>
<option
  
  value="SHAY/libnet-1.29"
>1.29
  (SHAY on 2014-10-08)</option>
<option
  
  value="SHAY/libnet-1.28"
>1.28
  (SHAY on 2014-10-08)</option>
<option
  
  value="SHAY/libnet-1.27"
>1.27
  (SHAY on 2014-05-30)</option>
<option
  
  value="SHAY/libnet-1.26"
>1.26
  (SHAY on 2014-05-30)</option>
<option
  
  value="SHAY/libnet-1.25"
>1.25
  (SHAY on 2014-02-04)</option>
<option
  
  value="SHAY/libnet-1.24"
>1.24
  (SHAY on 2014-01-06)</option>
<option
  
  value="SHAY/libnet-1.23"
>1.23
  (SHAY on 2013-08-12)</option>
<option
  
  value="SHAY/libnet-1.22_02"
>1.22_02 DEV
  (SHAY on 2013-08-08)</option>
<option
  
  value="GBARR/libnet-1.21"
>1.21
  (GBARR on 2007-05-19)</option>
<option
  
  value="GBARR/libnet-1.20"
>1.20
  (GBARR on 2007-02-03)</option>
<option
  
  value="GBARR/libnet-1.19"
>1.19
  (GBARR on 2004-06-30)</option>
<option
  
  value="GBARR/libnet-1.18"
>1.18
  (GBARR on 2004-03-22)</option>
<option
  
  value="GBARR/libnet-1.17"
>1.17
  (GBARR on 2003-09-25)</option>
<option
  
  value="GBARR/libnet-1.16"
>1.16
  (GBARR on 2003-06-18)</option>
<option
  
  value="GBARR/libnet-1.15"
>1.15
  (GBARR on 2003-06-13)</option>
<option
  
  value="GBARR/libnet-1.14"
>1.14
  (GBARR on 2003-06-02)</option>
<option
  
  value="GBARR/libnet-1.13"
>1.13
  (GBARR on 2003-03-03)</option>
<option
  
  value="GBARR/libnet-1.12"
>1.12
  (GBARR on 2002-05-28)</option>
<option
  
  value="GBARR/libnet-1.11"
>1.11
  (GBARR on 2002-04-02)</option>
<option
  
  value="GBARR/libnet-1.10"
>1.10
  (GBARR on 2002-02-28)</option>
<option
  
  value="GBARR/libnet-1.0901"
>1.0901
  (GBARR on 2001-12-10)</option>
<option
  
  value="GBARR/libnet-1.09"
>1.09
  (GBARR on 2001-11-02)</option>
<option
  
  value="GBARR/libnet-1.08"
>1.08
  (GBARR on 2001-10-29)</option>
<option
  
  value="GBARR/libnet-1.0704"
>1.0704
  (GBARR on 2001-08-17)</option>
<option
  
  value="GBARR/libnet-1.0703"
>1.0703
  (GBARR on 2000-03-23)</option>
<option
  
  value="GBARR/libnet-1.0702"
>1.0702
  (GBARR on 2000-03-13)</option>
<option
  
  value="GBARR/libnet-1.0701"
>1.0701
  (GBARR on 2000-03-07)</option>
<option
  
  value="GBARR/libnet-1.07"
>1.07
  (GBARR on 2000-03-06)</option>
<option
  
  value="GBARR/libnet-1.0607"
>1.0607
  (GBARR on 1999-09-18)</option>
<option
  
  value="GBARR/libnet-1.0606"
>1.0606
  (GBARR on 1998-12-11)</option>
<option
  
  value="GBARR/libnet-1.0605"
>1.0605
  (GBARR on 1997-12-21)</option>
<option
  
  value="GBARR/libnet-1.0604"
>1.0604
  (GBARR on 1997-12-12)</option>
<option
  
  value="GBARR/libnet-1.0603"
>1.0603
  (GBARR on 1997-11-26)</option>
<option
  
  value="GBARR/libnet-1.0602"
>1.0602
  (GBARR on 1997-11-18)</option>
<option
  
  value="GBARR/libnet-1.0601"
>1.0601
  (GBARR on 1997-11-05)</option>
<option
  
  value="GBARR/libnet-1.06"
>1.06
  (GBARR on 1997-11-01)</option>
<option
  
  value="GBARR/libnet-1.0506"
>1.0506
  (GBARR on 1997-10-13)</option>
<option
  
  value="GBARR/libnet-1.0505"
>1.0505
  (GBARR on 1997-05-28)</option>
<option
  
  value="GBARR/libnet-1.0504"
>1.0504
  (GBARR on 1997-05-27)</option>
<option
  
  value="GBARR/libnet-1.0503"
>1.0503
  (GBARR on 1997-05-21)</option>
<option
  
  value="GBARR/libnet-1.0502"
>1.0502
  (GBARR on 1997-04-03)</option>
<option
  
  value="GBARR/libnet-1.05_01"
>1.05_01 DEV
  (GBARR on 1997-03-19)</option>
<option
  
  value="GBARR/libnet-1.05"
>1.05
  (GBARR on 1997-03-12)</option>
<option
  
  value="GBARR/libnet-1.04"
>1.04
  (GBARR on 1997-01-07)</option>
<option
  
  value="GBARR/libnet-1.03"
>1.03
  (GBARR on 1997-01-02)</option>
<option
  
  value="GBARR/libnet-1.02"
>1.02
  (GBARR on 1996-12-23)</option>
<option
  
  value="GBARR/libnet-1.01"
>1.01
  (GBARR on 1996-09-05)</option>
<option
  
  value="GBARR/libnet-1.00"
>1.00
  (GBARR on 1996-06-24)</option>
</optgroup>
</select>
    </li>
    <li class="version-diff">
<select onchange="document.location.href='/release/SHAY/libnet-3.15/diff/' + encodeURIComponent(this.value) + '/lib/Net/libnetFAQ.pod'
" class="form-control tool-bar-form">
  <option disabled selected>Diff with version</option>
<option
  disabled
  value="SHAY/libnet-3.15"
>3.15
  (SHAY on 2023-03-20)</option>
<option
  
  value="SHAY/libnet-3.14"
>3.14
  (SHAY on 2022-05-22)</option>
<option
  
  value="SHAY/libnet-3.13"
>3.13
  (SHAY on 2020-12-23)</option>
<option
  
  value="GBARR/libnet-1.22_01"
>1.22_01 DEV
  (GBARR on 2010-05-31)</option>
<option
  
  value="GBARR/libnet-1.22"
>1.22
  (GBARR on 2007-08-26)</option>
<optgroup label="BackPAN">'
<option
  
  value="SHAY/libnet-3.12"
>3.12
  (SHAY on 2020-12-09)</option>
<option
  
  value="SHAY/libnet-3.11"
>3.11
  (SHAY on 2017-11-14)</option>
<option
  
  value="SHAY/libnet-3.10"
>3.10
  (SHAY on 2016-08-01)</option>
<option
  
  value="SHAY/libnet-3.09"
>3.09
  (SHAY on 2016-07-19)</option>
<option
  
  value="SHAY/libnet-3.08"
>3.08
  (SHAY on 2016-01-05)</option>
<option
  
  value="SHAY/libnet-3.07"
>3.07
  (SHAY on 2015-07-17)</option>
<option
  
  value="SHAY/libnet-3.06"
>3.06
  (SHAY on 2015-04-01)</option>
<option
  
  value="SHAY/libnet-3.05"
>3.05
  (SHAY on 2015-01-13)</option>
<option
  
  value="SHAY/libnet-3.04"
>3.04
  (SHAY on 2014-11-29)</option>
<option
  
  value="SHAY/libnet-3.03"
>3.03
  (SHAY on 2014-11-28)</option>
<option
  
  value="SHAY/libnet-3.02"
>3.02
  (SHAY on 2014-10-10)</option>
<option
  
  value="SHAY/libnet-3.01"
>3.01
  (SHAY on 2014-10-09)</option>
<option
  
  value="SHAY/libnet-3.00"
>3.00
  (SHAY on 2014-10-09)</option>
<option
  
  value="SHAY/libnet-1.30"
>1.30
  (SHAY on 2014-10-08)</option>
<option
  
  value="SHAY/libnet-1.29"
>1.29
  (SHAY on 2014-10-08)</option>
<option
  
  value="SHAY/libnet-1.28"
>1.28
  (SHAY on 2014-10-08)</option>
<option
  
  value="SHAY/libnet-1.27"
>1.27
  (SHAY on 2014-05-30)</option>
<option
  
  value="SHAY/libnet-1.26"
>1.26
  (SHAY on 2014-05-30)</option>
<option
  
  value="SHAY/libnet-1.25"
>1.25
  (SHAY on 2014-02-04)</option>
<option
  
  value="SHAY/libnet-1.24"
>1.24
  (SHAY on 2014-01-06)</option>
<option
  
  value="SHAY/libnet-1.23"
>1.23
  (SHAY on 2013-08-12)</option>
<option
  
  value="SHAY/libnet-1.22_02"
>1.22_02 DEV
  (SHAY on 2013-08-08)</option>
<option
  
  value="GBARR/libnet-1.21"
>1.21
  (GBARR on 2007-05-19)</option>
<option
  
  value="GBARR/libnet-1.20"
>1.20
  (GBARR on 2007-02-03)</option>
<option
  
  value="GBARR/libnet-1.19"
>1.19
  (GBARR on 2004-06-30)</option>
<option
  
  value="GBARR/libnet-1.18"
>1.18
  (GBARR on 2004-03-22)</option>
<option
  
  value="GBARR/libnet-1.17"
>1.17
  (GBARR on 2003-09-25)</option>
<option
  
  value="GBARR/libnet-1.16"
>1.16
  (GBARR on 2003-06-18)</option>
<option
  
  value="GBARR/libnet-1.15"
>1.15
  (GBARR on 2003-06-13)</option>
<option
  
  value="GBARR/libnet-1.14"
>1.14
  (GBARR on 2003-06-02)</option>
<option
  
  value="GBARR/libnet-1.13"
>1.13
  (GBARR on 2003-03-03)</option>
<option
  
  value="GBARR/libnet-1.12"
>1.12
  (GBARR on 2002-05-28)</option>
<option
  
  value="GBARR/libnet-1.11"
>1.11
  (GBARR on 2002-04-02)</option>
<option
  
  value="GBARR/libnet-1.10"
>1.10
  (GBARR on 2002-02-28)</option>
<option
  
  value="GBARR/libnet-1.0901"
>1.0901
  (GBARR on 2001-12-10)</option>
<option
  
  value="GBARR/libnet-1.09"
>1.09
  (GBARR on 2001-11-02)</option>
<option
  
  value="GBARR/libnet-1.08"
>1.08
  (GBARR on 2001-10-29)</option>
<option
  
  value="GBARR/libnet-1.0704"
>1.0704
  (GBARR on 2001-08-17)</option>
<option
  
  value="GBARR/libnet-1.0703"
>1.0703
  (GBARR on 2000-03-23)</option>
<option
  
  value="GBARR/libnet-1.0702"
>1.0702
  (GBARR on 2000-03-13)</option>
<option
  
  value="GBARR/libnet-1.0701"
>1.0701
  (GBARR on 2000-03-07)</option>
<option
  
  value="GBARR/libnet-1.07"
>1.07
  (GBARR on 2000-03-06)</option>
<option
  
  value="GBARR/libnet-1.0607"
>1.0607
  (GBARR on 1999-09-18)</option>
<option
  
  value="GBARR/libnet-1.0606"
>1.0606
  (GBARR on 1998-12-11)</option>
<option
  
  value="GBARR/libnet-1.0605"
>1.0605
  (GBARR on 1997-12-21)</option>
<option
  
  value="GBARR/libnet-1.0604"
>1.0604
  (GBARR on 1997-12-12)</option>
<option
  
  value="GBARR/libnet-1.0603"
>1.0603
  (GBARR on 1997-11-26)</option>
<option
  
  value="GBARR/libnet-1.0602"
>1.0602
  (GBARR on 1997-11-18)</option>
<option
  
  value="GBARR/libnet-1.0601"
>1.0601
  (GBARR on 1997-11-05)</option>
<option
  
  value="GBARR/libnet-1.06"
>1.06
  (GBARR on 1997-11-01)</option>
<option
  
  value="GBARR/libnet-1.0506"
>1.0506
  (GBARR on 1997-10-13)</option>
<option
  
  value="GBARR/libnet-1.0505"
>1.0505
  (GBARR on 1997-05-28)</option>
<option
  
  value="GBARR/libnet-1.0504"
>1.0504
  (GBARR on 1997-05-27)</option>
<option
  
  value="GBARR/libnet-1.0503"
>1.0503
  (GBARR on 1997-05-21)</option>
<option
  
  value="GBARR/libnet-1.0502"
>1.0502
  (GBARR on 1997-04-03)</option>
<option
  
  value="GBARR/libnet-1.05_01"
>1.05_01 DEV
  (GBARR on 1997-03-19)</option>
<option
  
  value="GBARR/libnet-1.05"
>1.05
  (GBARR on 1997-03-12)</option>
<option
  
  value="GBARR/libnet-1.04"
>1.04
  (GBARR on 1997-01-07)</option>
<option
  
  value="GBARR/libnet-1.03"
>1.03
  (GBARR on 1997-01-02)</option>
<option
  
  value="GBARR/libnet-1.02"
>1.02
  (GBARR on 1996-12-23)</option>
<option
  
  value="GBARR/libnet-1.01"
>1.01
  (GBARR on 1996-09-05)</option>
<option
  
  value="GBARR/libnet-1.00"
>1.00
  (GBARR on 1996-06-24)</option>
</optgroup>
</select>
    </li>

    <li>
<ul class="dependencies">
  <li class="nav-header">Dependencies</li>
  <li><a href="https://metacpan.org/pod/Carp" title="Carp" class="ellipsis">Carp</a></li>
  <li><a href="https://metacpan.org/pod/Errno" title="Errno" class="ellipsis">Errno</a></li>
  <li><a href="https://metacpan.org/pod/Exporter" title="Exporter" class="ellipsis">Exporter</a></li>
  <li><a href="https://metacpan.org/pod/Fcntl" title="Fcntl" class="ellipsis">Fcntl</a></li>
  <li><a href="https://metacpan.org/pod/File::Basename" title="File::Basename" class="ellipsis">File::Basename</a></li>
  <li><a href="https://metacpan.org/pod/FileHandle" title="FileHandle" class="ellipsis">FileHandle</a></li>
  <li><a href="https://metacpan.org/pod/IO::Select" title="IO::Select" class="ellipsis">IO::Select</a></li>
  <li><a href="https://metacpan.org/pod/IO::Socket" title="IO::Socket" class="ellipsis">IO::Socket</a></li>
  <li><a href="https://metacpan.org/pod/POSIX" title="POSIX" class="ellipsis">POSIX</a></li>
  <li><a href="https://metacpan.org/pod/Socket" title="Socket" class="ellipsis">Socket</a></li>
  <li><a href="https://metacpan.org/pod/Symbol" title="Symbol" class="ellipsis">Symbol</a></li>
  <li><a href="https://metacpan.org/pod/Time::Local" title="Time::Local" class="ellipsis">Time::Local</a></li>
  <li><a href="https://metacpan.org/pod/constant" title="constant" class="ellipsis">constant</a></li>
  <li><a href="https://metacpan.org/pod/strict" title="strict" class="ellipsis">strict</a></li>
  <li><a href="https://metacpan.org/pod/utf8" title="utf8" class="ellipsis">utf8</a></li>
  <li><a href="https://metacpan.org/pod/vars" title="vars" class="ellipsis">vars</a></li>
  <li><i class="ttip" title="dynamic_config enabled">and possibly others</i></li>
  <li>
    <hr>
  </li>
  <li>
    <a href="https://metacpan.org/module/libnetFAQ/requires">Reverse dependencies</a>
  </li>
  <li>
    <a href="http://deps.cpantesters.org/?module=libnetFAQ">CPAN Testers List</a>
  </li>
  <li>
    <a href="https://cpandeps.grinnz.com/?dist=libnet">Dependency graph</a>
  </li>
</ul>
    </li>
    <li class="nav-header">Permalinks</li>
    <li>
      <a href="https://metacpan.org/release/SHAY/libnet-3.15/view/lib/Net/libnetFAQ.pod">This version</a>
    </li>
    <li>
      <a href="https://metacpan.org/dist/libnet/view/lib/Net/libnetFAQ.pod">Latest version</a>
    </li>
    <li>
<div class="plussers">
<div class="nav-header">++ed by:</div>
<div>
<a class="display-all" href="https://metacpan.org/author/RRWO"><img src="https://www.gravatar.com/avatar/4a5274bc5d690ee3d619f044778771a7?d=identicon&amp;s=20" title="RRWO" alt="RRWO"></a>
<a class="display-all" href="https://metacpan.org/author/PINGAN"><img src="https://www.gravatar.com/avatar/a02222e5e0e4fd24d52fc29a08ac6bcb?d=identicon&amp;s=20" title="PINGAN" alt="PINGAN"></a>
<a class="display-all" href="https://metacpan.org/author/SEBKIRCHE"><img src="https://www.gravatar.com/avatar/80ae61c676b34229101fd7b0929831bb?d=identicon&amp;s=20" title="SEBKIRCHE" alt="SEBKIRCHE"></a>
<a class="display-all" href="https://metacpan.org/author/MMUSGROVE"><img src="https://www.gravatar.com/avatar/c8d0367f59978d30016ef08c7a60b961?d=identicon&amp;s=20" title="MMUSGROVE" alt="MMUSGROVE"></a>
<a class="display-all" href="https://metacpan.org/author/SAPER"><img src="https://www.gravatar.com/avatar/cad36eb4c5da1a39158c9c58b45590bd?d=identicon&amp;s=20" title="SAPER" alt="SAPER"></a>
</div>
<!-- Display counts of plussers-->
<div>
    <a href="https://metacpan.org/dist/libnet/plussers">16 PAUSE users</a>
</div>
<div>
    14 non-PAUSE users
</div>
</div>
    </li>
    <li>
<div id="metacpan_contributors">
  <div>
    <button class="btn-link"
      onclick="$(this).hide(); $('#metacpan_contributors ul').slideDown(); return false;"
    >and 1 contributors</button>
  </div>
  <ul style="display: none">
    <li class="contributor"
      data-cpan-author="GBARR"
      data-contrib-email="gbarr@pobox.com"
    >
      <a href="https://metacpan.org/author/GBARR" class="cpan-author">
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/91e0a99c0201988cad4e53833c8aa2b5?d=identicon&amp;s=20" />
      Graham Barr, Steve Hay &lt;shay@cpan.org&gt;
      </a>
    </li>
  </ul>
</div>
    </li>
              </ul>
            </div>
          </nav>
          <div class="content-navigation">
<div class="breadcrumbs">
  <span>
    <a data-keyboard-shortcut="g a" rel="author" href="https://metacpan.org/author/SHAY" class="author-name">Steve Hay</a>
  </span>
  <span>&nbsp;/&nbsp;</span>
  <div class="release dist-release status-latest maturity-released">
    <span class="dropdown"><b class="caret"></b></span>
<select onchange="document.location.href=&#39;/release/&#39;+this.value+&#39;/view/lib/Net/libnetFAQ.pod&#39;" class="">
<option
  selected
  value="SHAY/libnet-3.15"
>3.15
  (SHAY on 2023-03-20)</option>
<option
  
  value="SHAY/libnet-3.14"
>3.14
  (SHAY on 2022-05-22)</option>
<option
  
  value="SHAY/libnet-3.13"
>3.13
  (SHAY on 2020-12-23)</option>
<option
  
  value="GBARR/libnet-1.22_01"
>1.22_01 DEV
  (GBARR on 2010-05-31)</option>
<option
  
  value="GBARR/libnet-1.22"
>1.22
  (GBARR on 2007-08-26)</option>
<optgroup label="BackPAN">'
<option
  
  value="SHAY/libnet-3.12"
>3.12
  (SHAY on 2020-12-09)</option>
<option
  
  value="SHAY/libnet-3.11"
>3.11
  (SHAY on 2017-11-14)</option>
<option
  
  value="SHAY/libnet-3.10"
>3.10
  (SHAY on 2016-08-01)</option>
<option
  
  value="SHAY/libnet-3.09"
>3.09
  (SHAY on 2016-07-19)</option>
<option
  
  value="SHAY/libnet-3.08"
>3.08
  (SHAY on 2016-01-05)</option>
<option
  
  value="SHAY/libnet-3.07"
>3.07
  (SHAY on 2015-07-17)</option>
<option
  
  value="SHAY/libnet-3.06"
>3.06
  (SHAY on 2015-04-01)</option>
<option
  
  value="SHAY/libnet-3.05"
>3.05
  (SHAY on 2015-01-13)</option>
<option
  
  value="SHAY/libnet-3.04"
>3.04
  (SHAY on 2014-11-29)</option>
<option
  
  value="SHAY/libnet-3.03"
>3.03
  (SHAY on 2014-11-28)</option>
<option
  
  value="SHAY/libnet-3.02"
>3.02
  (SHAY on 2014-10-10)</option>
<option
  
  value="SHAY/libnet-3.01"
>3.01
  (SHAY on 2014-10-09)</option>
<option
  
  value="SHAY/libnet-3.00"
>3.00
  (SHAY on 2014-10-09)</option>
<option
  
  value="SHAY/libnet-1.30"
>1.30
  (SHAY on 2014-10-08)</option>
<option
  
  value="SHAY/libnet-1.29"
>1.29
  (SHAY on 2014-10-08)</option>
<option
  
  value="SHAY/libnet-1.28"
>1.28
  (SHAY on 2014-10-08)</option>
<option
  
  value="SHAY/libnet-1.27"
>1.27
  (SHAY on 2014-05-30)</option>
<option
  
  value="SHAY/libnet-1.26"
>1.26
  (SHAY on 2014-05-30)</option>
<option
  
  value="SHAY/libnet-1.25"
>1.25
  (SHAY on 2014-02-04)</option>
<option
  
  value="SHAY/libnet-1.24"
>1.24
  (SHAY on 2014-01-06)</option>
<option
  
  value="SHAY/libnet-1.23"
>1.23
  (SHAY on 2013-08-12)</option>
<option
  
  value="SHAY/libnet-1.22_02"
>1.22_02 DEV
  (SHAY on 2013-08-08)</option>
<option
  
  value="GBARR/libnet-1.21"
>1.21
  (GBARR on 2007-05-19)</option>
<option
  
  value="GBARR/libnet-1.20"
>1.20
  (GBARR on 2007-02-03)</option>
<option
  
  value="GBARR/libnet-1.19"
>1.19
  (GBARR on 2004-06-30)</option>
<option
  
  value="GBARR/libnet-1.18"
>1.18
  (GBARR on 2004-03-22)</option>
<option
  
  value="GBARR/libnet-1.17"
>1.17
  (GBARR on 2003-09-25)</option>
<option
  
  value="GBARR/libnet-1.16"
>1.16
  (GBARR on 2003-06-18)</option>
<option
  
  value="GBARR/libnet-1.15"
>1.15
  (GBARR on 2003-06-13)</option>
<option
  
  value="GBARR/libnet-1.14"
>1.14
  (GBARR on 2003-06-02)</option>
<option
  
  value="GBARR/libnet-1.13"
>1.13
  (GBARR on 2003-03-03)</option>
<option
  
  value="GBARR/libnet-1.12"
>1.12
  (GBARR on 2002-05-28)</option>
<option
  
  value="GBARR/libnet-1.11"
>1.11
  (GBARR on 2002-04-02)</option>
<option
  
  value="GBARR/libnet-1.10"
>1.10
  (GBARR on 2002-02-28)</option>
<option
  
  value="GBARR/libnet-1.0901"
>1.0901
  (GBARR on 2001-12-10)</option>
<option
  
  value="GBARR/libnet-1.09"
>1.09
  (GBARR on 2001-11-02)</option>
<option
  
  value="GBARR/libnet-1.08"
>1.08
  (GBARR on 2001-10-29)</option>
<option
  
  value="GBARR/libnet-1.0704"
>1.0704
  (GBARR on 2001-08-17)</option>
<option
  
  value="GBARR/libnet-1.0703"
>1.0703
  (GBARR on 2000-03-23)</option>
<option
  
  value="GBARR/libnet-1.0702"
>1.0702
  (GBARR on 2000-03-13)</option>
<option
  
  value="GBARR/libnet-1.0701"
>1.0701
  (GBARR on 2000-03-07)</option>
<option
  
  value="GBARR/libnet-1.07"
>1.07
  (GBARR on 2000-03-06)</option>
<option
  
  value="GBARR/libnet-1.0607"
>1.0607
  (GBARR on 1999-09-18)</option>
<option
  
  value="GBARR/libnet-1.0606"
>1.0606
  (GBARR on 1998-12-11)</option>
<option
  
  value="GBARR/libnet-1.0605"
>1.0605
  (GBARR on 1997-12-21)</option>
<option
  
  value="GBARR/libnet-1.0604"
>1.0604
  (GBARR on 1997-12-12)</option>
<option
  
  value="GBARR/libnet-1.0603"
>1.0603
  (GBARR on 1997-11-26)</option>
<option
  
  value="GBARR/libnet-1.0602"
>1.0602
  (GBARR on 1997-11-18)</option>
<option
  
  value="GBARR/libnet-1.0601"
>1.0601
  (GBARR on 1997-11-05)</option>
<option
  
  value="GBARR/libnet-1.06"
>1.06
  (GBARR on 1997-11-01)</option>
<option
  
  value="GBARR/libnet-1.0506"
>1.0506
  (GBARR on 1997-10-13)</option>
<option
  
  value="GBARR/libnet-1.0505"
>1.0505
  (GBARR on 1997-05-28)</option>
<option
  
  value="GBARR/libnet-1.0504"
>1.0504
  (GBARR on 1997-05-27)</option>
<option
  
  value="GBARR/libnet-1.0503"
>1.0503
  (GBARR on 1997-05-21)</option>
<option
  
  value="GBARR/libnet-1.0502"
>1.0502
  (GBARR on 1997-04-03)</option>
<option
  
  value="GBARR/libnet-1.05_01"
>1.05_01 DEV
  (GBARR on 1997-03-19)</option>
<option
  
  value="GBARR/libnet-1.05"
>1.05
  (GBARR on 1997-03-12)</option>
<option
  
  value="GBARR/libnet-1.04"
>1.04
  (GBARR on 1997-01-07)</option>
<option
  
  value="GBARR/libnet-1.03"
>1.03
  (GBARR on 1997-01-02)</option>
<option
  
  value="GBARR/libnet-1.02"
>1.02
  (GBARR on 1996-12-23)</option>
<option
  
  value="GBARR/libnet-1.01"
>1.01
  (GBARR on 1996-09-05)</option>
<option
  
  value="GBARR/libnet-1.00"
>1.00
  (GBARR on 1996-06-24)</option>
</optgroup>
</select>
    <a data-keyboard-shortcut="g d" class="release-name" href="https://metacpan.org/dist/libnet">libnet-3.15</a>
  </div>
<span class="river-gauge-gauge">
  <svg width="24px"
       height="15px"
       version="1.1"
       xmlns="http://www.w3.org/2000/svg"
       xmlns:xlink="http://www.w3.org/1999/xlink">

    <g>
      <title>        River stage five &#10;
          • 155 direct dependents &#10;          • 10294 total dependents
      </title>

      <rect x="0"  y="0" width="4" height="15" fill="#7ea3f2" />
      <rect x="5"  y="0" width="4" height="15" fill="#7ea3f2" />
      <rect x="10"  y="0" width="4" height="15" fill="#7ea3f2" />
      <rect x="15"  y="0" width="4" height="15" fill="#7ea3f2" />
      <rect x="20"  y="0" width="4" height="15" fill="#7ea3f2" />
    </g>
  </svg>

</span>
<div id="libnet-fav" class="logged_in">
<form action="https://metacpan.org/account/favorite/add" style="display: inline" onsubmit="return favDistribution(this)">
    <input type="hidden" name="remove" value="0">
    <input type="hidden" name="release" value="libnet-3.15">
    <input type="hidden" name="author" value="SHAY">
    <input type="hidden" name="distribution" value="libnet">
    <button type="submit" class="favorite highlight"><span>30</span> ++</button>
</form>
</div>
<div class="logged_out">
<a href="libnetFAQ.html" onclick="alert('Please sign in to add favorites'); return false" class="favorite highlight">
<span>30</span> ++</a>
</div>
   / <span>libnetFAQ</span>
</div>
          </div>
          <main class="content">


<nav class="toc">
  <div class="toc-header"><strong>Contents</strong></div>
<ul>
  <li><a href="libnetFAQ.html#NAME">NAME</a></li>
  <li><a href="libnetFAQ.html#DESCRIPTION">DESCRIPTION</a>
    <ul>
      <li><a href="libnetFAQ.html#Where-to-get-this-document">Where to get this document</a></li>
      <li><a href="libnetFAQ.html#How-to-contribute-to-this-document">How to contribute to this document</a></li>
    </ul>
  </li>
  <li><a href="libnetFAQ.html#Author-and-Copyright-Information">Author and Copyright Information</a>
    <ul>
      <li><a href="libnetFAQ.html#Disclaimer">Disclaimer</a></li>
    </ul>
  </li>
  <li><a href="libnetFAQ.html#Obtaining-and-installing-libnet">Obtaining and installing libnet</a>
    <ul>
      <li><a href="libnetFAQ.html#What-is-libnet-?">What is libnet ?</a></li>
      <li><a href="libnetFAQ.html#Which-version-of-perl-do-I-need-?">Which version of perl do I need ?</a></li>
      <li><a href="libnetFAQ.html#What-other-modules-do-I-need-?">What other modules do I need ?</a></li>
      <li><a href="libnetFAQ.html#What-machines-support-libnet-?">What machines support libnet ?</a></li>
      <li><a href="libnetFAQ.html#Where-can-I-get-the-latest-libnet-release">Where can I get the latest libnet release</a></li>
    </ul>
  </li>
  <li><a href="libnetFAQ.html#Using-Net::FTP">Using Net::FTP</a>
    <ul>
      <li><a href="libnetFAQ.html#How-do-I-download-files-from-an-FTP-server-?">How do I download files from an FTP server ?</a></li>
      <li><a href="libnetFAQ.html#How-do-I-transfer-files-in-binary-mode-?">How do I transfer files in binary mode ?</a></li>
      <li><a href="libnetFAQ.html#How-can-I-get-the-size-of-a-file-on-a-remote-FTP-server-?">How can I get the size of a file on a remote FTP server ?</a></li>
      <li><a href="libnetFAQ.html#How-can-I-get-the-modification-time-of-a-file-on-a-remote-FTP-server-?">How can I get the modification time of a file on a remote FTP server ?</a></li>
      <li><a href="libnetFAQ.html#How-can-I-change-the-permissions-of-a-file-on-a-remote-server-?">How can I change the permissions of a file on a remote server ?</a></li>
      <li><a href="libnetFAQ.html#Can-I-do-a-reget-operation-like-the-ftp-command-?">Can I do a reget operation like the ftp command ?</a></li>
      <li><a href="libnetFAQ.html#How-do-I-get-a-directory-listing-from-an-FTP-server-?">How do I get a directory listing from an FTP server ?</a></li>
      <li><a href="libnetFAQ.html#Changing-directory-to-%22%22-does-not-fail-?">Changing directory to &quot;&quot; does not fail ?</a></li>
      <li><a href="libnetFAQ.html#I-am-behind-a-SOCKS-firewall,-but-the-Firewall-option-does-not-work-?">I am behind a SOCKS firewall, but the Firewall option does not work ?</a></li>
      <li><a href="libnetFAQ.html#I-am-behind-an-FTP-proxy-firewall,-but-cannot-access-machines-outside-?">I am behind an FTP proxy firewall, but cannot access machines outside ?</a></li>
      <li><a href="libnetFAQ.html#My-ftp-proxy-firewall-does-not-listen-on-port-21">My ftp proxy firewall does not listen on port 21</a></li>
      <li><a href="libnetFAQ.html#Is-it-possible-to-change-the-file-permissions-of-a-file-on-an-FTP-server-?">Is it possible to change the file permissions of a file on an FTP server ?</a></li>
      <li><a href="libnetFAQ.html#I-have-seen-scripts-call-a-method-message,-but-cannot-find-it-documented-?">I have seen scripts call a method message, but cannot find it documented ?</a></li>
      <li><a href="libnetFAQ.html#Why-does-Net::FTP-not-implement-mput-and-mget-methods">Why does Net::FTP not implement mput and mget methods</a></li>
    </ul>
  </li>
  <li><a href="libnetFAQ.html#Using-Net::SMTP">Using Net::SMTP</a>
    <ul>
      <li><a href="libnetFAQ.html#Why-can&#39;t-the-part-of-an-Email-address-after-the-@-be-used-as-the-hostname-?">Why can&#39;t the part of an Email address after the @ be used as the hostname ?</a></li>
      <li><a href="libnetFAQ.html#Why-does-Net::SMTP-not-do-DNS-MX-lookups-?">Why does Net::SMTP not do DNS MX lookups ?</a></li>
      <li><a href="libnetFAQ.html#The-verify-method-always-returns-true-?">The verify method always returns true ?</a></li>
    </ul>
  </li>
  <li><a href="libnetFAQ.html#Debugging-scripts">Debugging scripts</a>
    <ul>
      <li><a href="libnetFAQ.html#How-can-I-debug-my-scripts-that-use-Net::*-modules-?">How can I debug my scripts that use Net::* modules ?</a></li>
    </ul>
  </li>
  <li><a href="libnetFAQ.html#AUTHOR-AND-COPYRIGHT">AUTHOR AND COPYRIGHT</a></li>
</ul></nav>
<div class="pod anchors">
<h1 id="NAME">NAME</h1>

<p>libnetFAQ - libnet Frequently Asked Questions</p>

<h1 id="DESCRIPTION">DESCRIPTION</h1>

<h2 id="Where-to-get-this-document"><a id="Where"></a>Where to get this document</h2>

<p>This document is distributed with the libnet distribution, and is also available on the libnet web page at</p>

<p><a href="https://metacpan.org/release/libnet">https://metacpan.org/release/libnet</a></p>

<h2 id="How-to-contribute-to-this-document"><a id="How"></a>How to contribute to this document</h2>

<p>You may report corrections, additions, and suggestions on the CPAN Request Tracker at</p>

<p><a href="https://rt.cpan.org/Public/Bug/Report.html?Queue=libnet">https://rt.cpan.org/Public/Bug/Report.html?Queue=libnet</a></p>

<h1 id="Author-and-Copyright-Information"><a id="Author"></a>Author and Copyright Information</h1>

<p>Copyright (C) 1997-1998 Graham Barr. All rights reserved. This document is free; you can redistribute it and/or modify it under the same terms as Perl itself, i.e. under the terms of either the GNU General Public License or the Artistic License, as specified in the <i>LICENCE</i> file.</p>

<p>Steve Hay &lt;<a href="mailto:shay@cpan.org">shay@cpan.org</a>&gt; is now maintaining libnet as of version 1.22_02.</p>

<h2 id="Disclaimer">Disclaimer</h2>

<p>This information is offered in good faith and in the hope that it may be of use, but is not guaranteed to be correct, up to date, or suitable for any particular purpose whatsoever. The authors accept no liability in respect of this information or its use.</p>

<h1 id="Obtaining-and-installing-libnet"><a id="Obtaining"></a>Obtaining and installing libnet</h1>

<h2 id="What-is-libnet-?"><a id="What"></a><a id="What-is-libnet"></a>What is libnet ?</h2>

<p>libnet is a collection of perl5 modules which all related to network programming. The majority of the modules available provided the client side of popular server-client protocols that are used in the internet community.</p>

<h2 id="Which-version-of-perl-do-I-need-?"><a id="Which"></a><a id="Which-version-of-perl-do-I-need"></a>Which version of perl do I need ?</h2>

<p>This version of libnet requires Perl 5.8.1 or higher.</p>

<h2 id="What-other-modules-do-I-need-?"><a id="What1"></a><a id="What-other-modules-do-I-need"></a>What other modules do I need ?</h2>

<p>No non-core modules are required for normal use, except on os390, which requires Convert::EBCDIC.</p>

<p>Authen::SASL is required for AUTH support.</p>

<p>IO::Socket::SSL version 2.007 or higher is required for SSL support.</p>

<p>IO::Socket::IP version 0.25 or IO::Socket::INET6 version 2.62 is required for IPv6 support.</p>

<h2 id="What-machines-support-libnet-?"><a id="What2"></a><a id="What-machines-support-libnet"></a>What machines support libnet ?</h2>

<p>libnet itself is an entirely perl-code distribution so it should work on any machine that perl runs on.</p>

<h2 id="Where-can-I-get-the-latest-libnet-release"><a id="Where1"></a>Where can I get the latest libnet release</h2>

<p>The latest libnet release is always on CPAN, you will find it in</p>

<p><a href="https://metacpan.org/release/libnet">https://metacpan.org/release/libnet</a></p>

<h1 id="Using-Net::FTP"><a id="Using"></a>Using Net::FTP</h1>

<h2 id="How-do-I-download-files-from-an-FTP-server-?"><a id="How1"></a><a id="How-do-I-download-files-from-an-FTP-server"></a>How do I download files from an FTP server ?</h2>

<p>An example taken from an article posted to comp.lang.perl.misc</p>

<pre><code>    #!/your/path/to/perl

    # a module making life easier

    use Net::FTP;

    # for debugging: $ftp = Net::FTP-&gt;new(&#39;site&#39;,&#39;Debug&#39;,10);
    # open a connection and log in!

    $ftp = Net::FTP-&gt;new(&#39;target_site.somewhere.xxx&#39;);
    $ftp-&gt;login(&#39;username&#39;,&#39;password&#39;);

    # set transfer mode to binary

    $ftp-&gt;binary();

    # change the directory on the ftp site

    $ftp-&gt;cwd(&#39;/some/path/to/somewhere/&#39;);

    foreach $name (&#39;file1&#39;, &#39;file2&#39;, &#39;file3&#39;) {

    # get&#39;s arguments are in the following order:
    # ftp server&#39;s filename
    # filename to save the transfer to on the local machine
    # can be simply used as get($name) if you want the same name

      $ftp-&gt;get($name,$name);
    }

    # ftp done!

    $ftp-&gt;quit;</code></pre>

<h2 id="How-do-I-transfer-files-in-binary-mode-?"><a id="How2"></a><a id="How-do-I-transfer-files-in-binary-mode"></a>How do I transfer files in binary mode ?</h2>

<p>To transfer files without &lt;LF&gt;&lt;CR&gt; translation Net::FTP provides the <code>binary</code> method</p>

<pre><code>    $ftp-&gt;binary;</code></pre>

<h2 id="How-can-I-get-the-size-of-a-file-on-a-remote-FTP-server-?"><a id="How3"></a><a id="How-can-I-get-the-size-of-a-file-on-a-remote-FTP-server"></a>How can I get the size of a file on a remote FTP server ?</h2>

<h2 id="How-can-I-get-the-modification-time-of-a-file-on-a-remote-FTP-server-?"><a id="How4"></a><a id="How-can-I-get-the-modification-time-of-a-file-on-a-remote-FTP-server"></a>How can I get the modification time of a file on a remote FTP server ?</h2>

<h2 id="How-can-I-change-the-permissions-of-a-file-on-a-remote-server-?"><a id="How5"></a><a id="How-can-I-change-the-permissions-of-a-file-on-a-remote-server"></a>How can I change the permissions of a file on a remote server ?</h2>

<p>The FTP protocol does not have a command for changing the permissions of a file on the remote server. But some ftp servers may allow a chmod command to be issued via a SITE command, eg</p>

<pre><code>    $ftp-&gt;quot(&#39;site chmod 0777&#39;,$filename);</code></pre>

<p>But this is not guaranteed to work.</p>

<h2 id="Can-I-do-a-reget-operation-like-the-ftp-command-?"><a id="Can"></a><a id="Can-I-do-a-reget-operation-like-the-ftp-command"></a>Can I do a reget operation like the ftp command ?</h2>

<h2 id="How-do-I-get-a-directory-listing-from-an-FTP-server-?"><a id="How6"></a><a id="How-do-I-get-a-directory-listing-from-an-FTP-server"></a>How do I get a directory listing from an FTP server ?</h2>

<h2 id="Changing-directory-to-&quot;&quot;-does-not-fail-?"><a id="Changing"></a><a id="Changing-directory-to---does-not-fail"></a>Changing directory to &quot;&quot; does not fail ?</h2>

<p>Passing an argument of &quot;&quot; to -&gt;cwd() has the same affect of calling -&gt;cwd() without any arguments. Turn on Debug (<i>See below</i>) and you will see what is happening</p>

<pre><code>    $ftp = Net::FTP-&gt;new($host, Debug =&gt; 1);
    $ftp-&gt;login;
    $ftp-&gt;cwd(&quot;&quot;);</code></pre>

<p>gives</p>

<pre><code>    Net::FTP=GLOB(0x82196d8)&gt;&gt;&gt; CWD /
    Net::FTP=GLOB(0x82196d8)&lt;&lt;&lt; 250 CWD command successful.</code></pre>

<h2 id="I-am-behind-a-SOCKS-firewall,-but-the-Firewall-option-does-not-work-?"><a id="I"></a><a id="I-am-behind-a-SOCKS-firewall--but-the-Firewall-option-does-not-work"></a>I am behind a SOCKS firewall, but the Firewall option does not work ?</h2>

<p>The Firewall option is only for support of one type of firewall. The type supported is an ftp proxy.</p>

<p>To use Net::FTP, or any other module in the libnet distribution, through a SOCKS firewall you must create a socks-ified perl executable by compiling perl with the socks library.</p>

<h2 id="I-am-behind-an-FTP-proxy-firewall,-but-cannot-access-machines-outside-?"><a id="I1"></a><a id="I-am-behind-an-FTP-proxy-firewall--but-cannot-access-machines-outside"></a>I am behind an FTP proxy firewall, but cannot access machines outside ?</h2>

<p>Net::FTP implements the most popular ftp proxy firewall approach. The scheme implemented is that where you log in to the firewall with <code>user@hostname</code></p>

<p>I have heard of one other type of firewall which requires a login to the firewall with an account, then a second login with <code>user@hostname</code>. You can still use Net::FTP to traverse these firewalls, but a more manual approach must be taken, eg</p>

<pre><code>    $ftp = Net::FTP-&gt;new($firewall) or die $@;
    $ftp-&gt;login($firewall_user, $firewall_passwd) or die $ftp-&gt;message;
    $ftp-&gt;login($ext_user . &#39;@&#39; . $ext_host, $ext_passwd) or die $ftp-&gt;message.</code></pre>

<h2 id="My-ftp-proxy-firewall-does-not-listen-on-port-21"><a id="My"></a>My ftp proxy firewall does not listen on port 21</h2>

<p>FTP servers usually listen on the same port number, port 21, as any other FTP server. But there is no reason why this has to be the case.</p>

<p>If you pass a port number to Net::FTP then it assumes this is the port number of the final destination. By default Net::FTP will always try to connect to the firewall on port 21.</p>

<p>Net::FTP uses IO::Socket to open the connection and IO::Socket allows the port number to be specified as part of the hostname. So this problem can be resolved by either passing a Firewall option like <code>&quot;hostname:1234&quot;</code> or by setting the <code>ftp_firewall</code> option in Net::Config to be a string in the same form.</p>

<h2 id="Is-it-possible-to-change-the-file-permissions-of-a-file-on-an-FTP-server-?"><a id="Is"></a><a id="Is-it-possible-to-change-the-file-permissions-of-a-file-on-an-FTP-server"></a>Is it possible to change the file permissions of a file on an FTP server ?</h2>

<p>The answer to this is &quot;maybe&quot;. The FTP protocol does not specify a command to change file permissions on a remote host. However many servers do allow you to run the chmod command via the <code>SITE</code> command. This can be done with</p>

<pre><code>  $ftp-&gt;site(&#39;chmod&#39;,&#39;0775&#39;,$file);</code></pre>

<h2 id="I-have-seen-scripts-call-a-method-message,-but-cannot-find-it-documented-?"><a id="I2"></a><a id="I-have-seen-scripts-call-a-method-message--but-cannot-find-it-documented"></a>I have seen scripts call a method message, but cannot find it documented ?</h2>

<p>Net::FTP, like several other packages in libnet, inherits from Net::Cmd, so all the methods described in Net::Cmd are also available on Net::FTP objects.</p>

<h2 id="Why-does-Net::FTP-not-implement-mput-and-mget-methods"><a id="Why"></a>Why does Net::FTP not implement mput and mget methods</h2>

<p>The quick answer is because they are easy to implement yourself. The long answer is that to write these in such a way that multiple platforms are supported correctly would just require too much code. Below are some examples how you can implement these yourself.</p>

<p>sub mput { my($ftp,$pattern) = @_; foreach my $file (glob($pattern)) { $ftp-&gt;put($file) or warn $ftp-&gt;message; } }</p>

<p>sub mget { my($ftp,$pattern) = @_; foreach my $file ($ftp-&gt;ls($pattern)) { $ftp-&gt;get($file) or warn $ftp-&gt;message; } }</p>

<h1 id="Using-Net::SMTP"><a id="Using1"></a>Using Net::SMTP</h1>

<h2 id="Why-can&#39;t-the-part-of-an-Email-address-after-the-@-be-used-as-the-hostname-?"><a id="Why1"></a><a id="Why-can-t-the-part-of-an-Email-address-after-the---be-used-as-the-hostname"></a>Why can&#39;t the part of an Email address after the @ be used as the hostname ?</h2>

<p>The part of an Email address which follows the @ is not necessarily a hostname, it is a mail domain. To find the name of a host to connect for a mail domain you need to do a DNS MX lookup</p>

<h2 id="Why-does-Net::SMTP-not-do-DNS-MX-lookups-?"><a id="Why2"></a><a id="Why-does-Net::SMTP-not-do-DNS-MX-lookups"></a>Why does Net::SMTP not do DNS MX lookups ?</h2>

<p>Net::SMTP implements the SMTP protocol. The DNS MX lookup is not part of this protocol.</p>

<h2 id="The-verify-method-always-returns-true-?"><a id="The"></a><a id="The-verify-method-always-returns-true"></a>The verify method always returns true ?</h2>

<p>Well it may seem that way, but it does not. The verify method returns true if the command succeeded. If you pass verify an address which the server would normally have to forward to another machine, the command will succeed with something like</p>

<pre><code>    252 Couldn&#39;t verify &lt;someone@there&gt; but will attempt delivery anyway</code></pre>

<p>This command will fail only if you pass it an address in a domain the server directly delivers for, and that address does not exist.</p>

<h1 id="Debugging-scripts"><a id="Debugging"></a>Debugging scripts</h1>

<h2 id="How-can-I-debug-my-scripts-that-use-Net::*-modules-?"><a id="How7"></a><a id="How-can-I-debug-my-scripts-that-use-Net::--modules"></a>How can I debug my scripts that use Net::* modules ?</h2>

<p>Most of the libnet client classes allow options to be passed to the constructor, in most cases one option is called <code>Debug</code>. Passing this option with a non-zero value will turn on a protocol trace, which will be sent to STDERR. This trace can be useful to see what commands are being sent to the remote server and what responses are being received back.</p>

<pre><code>    #!/your/path/to/perl

    use Net::FTP;

    my $ftp = new Net::FTP($host, Debug =&gt; 1);
    $ftp-&gt;login(&#39;gbarr&#39;,&#39;password&#39;);
    $ftp-&gt;quit;</code></pre>

<p>this script would output something like</p>

<pre><code> Net::FTP: Net::FTP(2.22)
 Net::FTP:   Exporter
 Net::FTP:   Net::Cmd(2.0801)
 Net::FTP:   IO::Socket::INET
 Net::FTP:     IO::Socket(1.1603)
 Net::FTP:       IO::Handle(1.1504)

 Net::FTP=GLOB(0x8152974)&lt;&lt;&lt; 220 imagine FTP server (Version wu-2.4(5) Tue Jul 29 11:17:18 CDT 1997) ready.
 Net::FTP=GLOB(0x8152974)&gt;&gt;&gt; user gbarr
 Net::FTP=GLOB(0x8152974)&lt;&lt;&lt; 331 Password required for gbarr.
 Net::FTP=GLOB(0x8152974)&gt;&gt;&gt; PASS ....
 Net::FTP=GLOB(0x8152974)&lt;&lt;&lt; 230 User gbarr logged in.  Access restrictions apply.
 Net::FTP=GLOB(0x8152974)&gt;&gt;&gt; QUIT
 Net::FTP=GLOB(0x8152974)&lt;&lt;&lt; 221 Goodbye.</code></pre>

<p>The first few lines tell you the modules that Net::FTP uses and their versions, this is useful data to me when a user reports a bug. The last seven lines show the communication with the server. Each line has three parts. The first part is the object itself, this is useful for separating the output if you are using multiple objects. The second part is either <code>&lt;&lt;&lt;&lt;</code> to show data coming from the server or <code>&amp;gt&amp;gt&amp;gt&amp;gt</code> to show data going to the server. The remainder of the line is the command being sent or response being received.</p>

<h1 id="AUTHOR-AND-COPYRIGHT"><a id="AUTHOR"></a>AUTHOR AND COPYRIGHT</h1>

<p>Copyright (C) 1997-1998 Graham Barr. All rights reserved.</p></div>

<div id="metacpan_install-instructions-dialog" class="modal fade">
  <div class="modal-dialog">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
        <h4 class="modal-title">Module Install Instructions</h4>
      </div>
      <div class="modal-body">
        <p>To install Net::Cmd, copy and paste the appropriate command in to your terminal.</p>
        <p><a href="https://metacpan.org/dist/App-cpanminus/view/bin/cpanm">cpanm</a></p>
        <pre><code>cpanm Net::Cmd</code></pre>
        <p><a href="https://metacpan.org/pod/CPAN">CPAN shell</a></p>
        <pre><code>perl -MCPAN -e shell
install Net::Cmd</code></pre>
        <p>For more information on module installation, please visit <a href="https://www.cpan.org/modules/INSTALL.html">the detailed CPAN module installation guide</a>.</p>
      </div>
      <div class="modal-footer">
        <a href="libnetFAQ.html#" data-dismiss="modal" class="btn">Close</a>
      </div>
    </div>
  </div>
</div>
          </main>
          <div class="content-pagination">
          </div>
        </div>
        <footer class="footer">
          <div class="footer-container">
            <div class="footer-social">
              <div class="footer-link footer-logo">
                <a href="https://metacpan.org/">
                  <img src="https://metacpan.org/static/images/metacpan-logo.svg" alt="MetaCPAN" />
                </a>
              </div>
              <a class="footer-social-link" href="https://github.com/metacpan">
                <i class="fab fa-github-square"></i>
              </a>
              <a class="footer-social-link" href="https://fosstodon.org/@metacpan">
                <i class="fab fa-mastodon"></i>
              </a>
            </div>
            <div class="footer-links">
              <div class="footer-link">
                  <a href="https://metacpan.org/about">About</a>
              </div>
              <div class="footer-link">
                  <a href="https://metacpan.org/about/sponsors">Sponsor</a>
              </div>
              <div class="footer-link">
                  <a href="https://grep.metacpan.org">grep::cpan</a>
              </div>
              <div class="footer-link">
                  <a href="https://metacpan.org/recent">Recent</a>
              </div>
              <div class="footer-link">
                  <a href="https://metacpan.org/about/faq">FAQ</a>
              </div>
              <div class="footer-link">
                  <a href="https://metacpan.org/tools">Tools</a>
              </div>
              <div class="footer-link">
                  <a href="https://fastapi.metacpan.org/">API</a>
              </div>
              <div class="footer-link">
                  <a href="https://www.perl.org/">Perl.org</a>
              </div>
            </div>
            <div class="footer-sponsors">
              <a class="footer-sponsor-link" target="_blank" href="https://www.bytemark.co.uk/" rel="noopener">
                <img class="footer-sponsor-bytemark" src="https://metacpan.org/static/images/sponsors/bytemark_logo.svg" alt="Bytemark logo">
              </a>
              <a class="footer-sponsor-link" target="_blank" href="https://www.liquidweb.com/" rel="noopener">
                <img class="footer-sponsor-liquidweb" src="https://metacpan.org/static/images/sponsors/liquidweb_logo.png" alt="liquidweb logo">
              </a>
              <a class="footer-sponsor-link" target="_blank" href="https://deriv.com/careers/" rel="noopener">
                <img class="footer-sponsor-deriv" src="https://metacpan.org/static/images/sponsors/deriv.svg" alt="Deriv logo">
              </a>
              <a class="footer-sponsor-link" target="_blank" href="https://geocode.xyz" rel="noopener">
                <img class="footer-sponsor-geocode" src="https://metacpan.org/static/images/sponsors/geocodelogo.svg" alt="Geocode logo">
              </a>
              <a class="footer-sponsor-link" target="_blank" href="https://www.fastly.com/" rel="noopener">
                <img class="footer-sponsor-fastly" src="https://metacpan.org/static/images/sponsors/fastly_logo.svg" alt="Fastly logo">
              </a>
              <a class="footer-sponsor-link" target="_blank" href="https://opencagedata.com" rel="noopener">
                <img class="footer-sponsor-opencage" src="https://metacpan.org/static/images/sponsors/open-cage.svg" alt="OpenCage logo">
              </a>
            </div>
          </div>
        </footer>
        <div class="modal fade" tabindex="-1" role="dialog" id="metacpan_keyboard-shortcuts">
          <div class="modal-dialog">
            <div class="modal-content">
              <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal">&times;</button>
                <h4 class="modal-title">Keyboard Shortcuts</h4>
              </div>
              <div class="modal-body row">
<div class="col-md-6">
  <table class="table keyboard-shortcuts">
    <thead>
      <tr>
        <th></th>
        <th>Global</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td class="keys">
          <kbd>s</kbd>
        </td>
        <td>Focus search bar</td>
      </tr>
      <tr>
        <td class="keys">
          <kbd>?</kbd>
        </td>
        <td>Bring up this help dialog</td>
      </tr>
    </tbody>
  </table>

  <table class="table keyboard-shortcuts">
    <thead>
      <tr>
        <th></th>
        <th>GitHub</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>p</kbd>
        </td>
        <td>Go to pull requests</td>
      </tr>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>i</kbd>
        </td>
        <td>go to github issues (only if github is preferred repository)</td>
      </tr>
    </tbody>
  </table>
</div>

<div class="col-md-6">
  <table class="table keyboard-shortcuts">
    <thead>
      <tr>
        <th></th>
        <th>POD</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>a</kbd>
        </td>
        <td>Go to author</td>
      </tr>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>c</kbd>
        </td>
        <td>Go to changes</td>
      </tr>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>i</kbd>
        </td>
        <td>Go to issues</td>
      </tr>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>d</kbd>
        </td>
        <td>Go to dist</td>
      </tr>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>r</kbd>
        </td>
        <td>Go to repository/SCM</td>
      </tr>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>s</kbd>
        </td>
        <td>Go to source</td>
      </tr>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>b</kbd>
        </td>
        <td>Go to file browse</td>
      </tr>

    </tbody>
  </table>
</div>

<div class="col-md-12">
  <table class="table keyboard-shortcuts">
    <thead>
      <tr>
        <th></th>
        <th>Search terms</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><em>module:</em> (e.g. <a href="https://metacpan.org/search?q=module%3APlugin">module:Plugin</a>)</td>
      </tr>
      <tr>
        <td><em>distribution:</em> (e.g. <a href="https://metacpan.org/search?q=distribution%3ADancer+auth">distribution:Dancer auth</a>)</td>
      </tr>
      <tr>
        <td><em>author:</em> (e.g. <a href="https://metacpan.org/search?q=author%3ASONGMU+Redis">author:SONGMU Redis</a>)</td>
      </tr>
      <tr>
        <td><em>version:</em> (e.g. <a href="https://metacpan.org/search?q=version%3A1.00">version:1.00</a>)</td>
      </tr>
    </tbody>
  </table>
</div>
              </div>
              <div class="modal-footer"></div>
            </div>
          </div>
        </div>
    </body>
</html>
